package com.chushouya.product.dto.admin.product.evaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel("新增评估选项模板")
public class TempEvaluateItemValueAdd2DTO {

    @ApiModelProperty(value = "评估项目ID", required = true)
    @NotNull(message = "评估项目ID不能为空")
    private Long tempItemId;

    @ApiModelProperty(value = "评估选项名称", required = true)
    @NotBlank(message = "评估选项名称不能为空")
    private String valueName;

    @ApiModelProperty(value = "扣减数值", required = true)
    private BigDecimal value = BigDecimal.ZERO;

    @ApiModelProperty(value = "排序", required = true)
    @NotNull(message = "排序不能为空")
    private Integer sort;

    @ApiModelProperty(value = "计算方式", required = true)
    @NotNull(message = "计算方式不能为空")
    private Integer calcType;

}
